<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/3/10
 * Time: 16:26
 */
//
for ($i=0; $i<4; $i++){
    for ($j=0;$j<$i; $j++){
        print '1';
    }
    for ($k=0; $k<7-2*$i; $k++){
        echo '*';
    }
    echo '<br>';
}